#include "seqlist.h"

int main()
{
    seqlist_t *p =  CreateEpSeqlist();

    printf("插入：\n");
    InsertIntoSeqlist(p, 0,100);
    InsertIntoSeqlist(p, 1,200);
    InsertIntoSeqlist(p, 2,300);
    InsertIntoSeqlist(p, 3,400);
    InsertIntoSeqlist(p, 4,500);
    InsertIntoSeqlist(p, 5,600);
    ShowSeqlist(p);

    printf("删除：\n");
    DeletePostSeqlist(p, 0);
    ShowSeqlist(p);

    printf("修改：\n");
    ChangePostSeqList(p,1,999);
    ShowSeqlist(p);
    
    //查找
    printf("400位置%d\n",SearchDataSeqList(p,510));

    printf("清空：\n");
    ClearSeqList(p);
    ShowSeqlist(p);

    free(p);
    p = NULL;
    return 0;
}